<!DOCTYPE html>  
<html>  
<head>  
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />  
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
<title>Venus</title>  
<style type="text/css">  
html{height:100%}  
body{height:100%;margin:0px;padding:0px}  
#container{height:100%}  
</style>  
<script type="text/javascript"
 src="http://api.map.baidu.com/api?v=2.0&ak=F7ilj4RiIWuTmgyXmxOiqwLNlQFvRY3a">
</script>
</head>   

<body>  
<div id="container"></div> 
<script type="text/javascript"> 
//alert(BMap.Venus instanceof Function);
var venus = new BMap.Map("container");          // 创建地图实例  
var point = new BMap.Point(116.038355, 28.686546);  // 创建点坐标  

venus.centerAndZoom(point, 18);                 // 初始化地图，设置中心点坐标和地图级别  
venus.enableScrollWheelZoom();            //启用滚轮缩放
venus.enableKeyboard();           //启用键盘移动

//向地图中添加控件 
var optsNC = {offset: new BMap.Size(15, 5)}    
venus.addControl(new BMap.NavigationControl(optsNC));

var optsSC = {offset: new BMap.Size(15, 5)} 
venus.addControl(new BMap.ScaleControl(optsSC));

venus.addControl(new BMap.OverviewMapControl());
venus.addControl(new BMap.MapTypeControl());    
venus.setCurrentCity("南昌");

</script>  
</body>  
</html>